package question1;

public class TestTwoThread {
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        t1.setName("线程A");

        MyThread t2 = new MyThread();
        t2.setName("线程B");
        //开始启动两个线程
        t1.start();
        t2.start();
    }
}
